<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<script src="http://libs.baidu.com/jquery/1.7.2/jquery.min.js"></script>
	<script type="text/javascript" src='indexdb.js'></script>
</head>
<body>
<input type="button" value="添加数据" id="btn_add" />
<script type="text/javascript">
//这里放置打开和初始化数据库的代码
btn_add.onclick=function(){
	// indexdb_add('hi',1);
	indexdb_find('hi',function(res){
		// console.log(res.key);
		$('#box').html(res.value);
	});
};
</script>
<div id="box"></div>
</body>
</html>